<template>
  <div class="app-container page_scroll">
    <QueryForm ref="queryForm" />
    <TeamTable :list="roleList" />
  </div>
</template>
<script>
import { getRoleList } from '@/api/role/index'
import QueryForm from './_components/QueryForm.vue'
import TeamTable from './_components/PostTable.vue'
import {received} from '@/utils/util'
export default {
  name: 'PostManage',
  components: { QueryForm, TeamTable },
  data() {
    return {
      roleList: []
    }
  },
  created() {
    received('post.add.succes', this.getRoleList)
    this.getRoleList()
  },
  methods: {
    async getRoleList() {
      this.showAppLoading()
      const res = await getRoleList()
      this.hideAppLoading()
      if (!res.result) return
      this.roleList = res.data
    },
    
  }
}
</script>
